package cn.tedu.test;

import java.util.Scanner;

public class PrintTraingle {
    public static void main(String[] args) {
        System.out.println("请输入您要打印的星星行数");
        int n=new Scanner(System.in).nextInt();

        for(int i=1;i<=n;i++){
            for(int j=0;j<n-i;j++){
                System.out.print(" ");
            }
            for(int m= 1; m<=i*2-1; m++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
